package com.beidouapp.dao;

import java.util.List;
import java.util.Map;

import com.beidouapp.mapper.BaseMapper;

public interface BaseDao<T> {
    public T getEntryByID(Long id);

    public List<T> findEntryList(T entry);

    public long findEntryCount(T entry);

    public List<T> findEntryListByMap(Map<String, Object> paramters);

    public List<T> findEntryListByMap(Map<String, Object> paramters, Integer offset, Integer limit);

    public long findEntryCountByMap(Map<String, Object> paramters);

    public int addEntry(T entry);

    public int addEntryBatch(List<T> entryList);

    public int removeEntryByID(Long id);

    public int removeEntry(T entry);

    public int removeEntryBatch(List<Long> idList);

    public int removeEntryByMap(Map<String, Object> paramters);

    public int modifyEntry(T entry);

    public BaseMapper<T> getResourceMapper();
}
